package com.example.db2.service.impl;

import com.example.db2.model.Account;
import com.example.db2.repository.AccountRepository;
import com.example.db2.service.IAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: abp
 * @Created: 2025/3/8 13:19
 */
@Service
public class AccountServiceImpl implements IAccountService {
    @Resource
    private AccountRepository accountRepository;

    @Override
    public List<Account> getAccountList() {
        return accountRepository.findAll();
    }
}
